<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>Click method</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY>
<h1>Click and HHClick method</h1>

<h2>Purpose</h2>

<p>Use the <b>Click</b> method to invoke any command that supports the <a href="ocx_pbutton.htm">Button</a> parameter. </p>

<p>Commands that do not support the <b>Button</b> parameter, such as <a href="ocx_splash.htm">Splash</a>, are invoked as soon as your HTML file is loaded and, therefore, cannot be called from a method.
</p>

<p>This method can be used with either a compiled help (.chm) file or uncompiled HTML files. However, not all <a href="ocx_commands.htm">commands</a> are supported in uncompiled HTML files.<p>


<h2>Applies to</h2>
<a href=ocx_alink.htm>Alink</a><br>
<a href=ocx_close.htm>Close</a><br>
<a href=ocx_hh_version.htm>HH Version</a><br>
<a href=ocx_klink.htm>KLink</a><br>
<a href=ocx_relatedtopics.htm>Related Topics</a><br>
<a href=ocx_shortcut.htm>Shortcut</a><br>
<a href=ocx_tcard.htm>TCard</a><br>
<a href=ocx_winhelp.htm>WinHelp</a><br>


<h2>Syntax</h2>
<code>
Click()
</code>
or 
<code>
HHClick()
</code>

<p>The <b>Click</b> method takes no parameters.</p>

<h2>Example</h2>
<p>The following example shows how to use the <b>Click</b> method to invoke the <a href="ocx_hh_version.htm">HH version</a> command.</p>

<p><b>The code for the control:</b>
<pre><code>
&lt;OBJECT
<br>  id=test3
<br>  type="application/x-oleobject"
<br>  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
<br>  codebase="hhctrl.ocx#Version=4,72,8252,0"
<br>&gt;
<br>  &lt;PARAM name="Command" value="HH Version"&gt;
<br>&lt;/OBJECT&gt;
</pre></code>


<b>The JavaScript code to invoke the control:</b>
<pre><code>
&lt;a href=JavaScript:test3.Click()&gt;On Click, do HH Version&lt;/a&gt;
</pre></code></p>

<h2><a href="showme_mclick.htm">Show Me</a></h2>


<h2>Comments</h2>
<ul>
<li>If you are using Microsoft Visual Basic Scripting Edition (VBScript), always use <b>HHClick</b>, which provides the same functionality as <b>Click</b>, but prevents a naming conflict with the VBScript <b>Click</b> method. 
</li>
</ul>


<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_methods.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_methods.htm">About the HTML Help ActiveX control methods</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>
